//
//  HMCycleImageView.h
//  Pods
//
//  Created by WangYong on 2017/9/10.
//
//

#import <UIKit/UIKit.h>

@class HMCycleImageView;

@protocol HMCycleImageViewDataSourse <NSObject>

@required
//提供轮播器的图片数量
- (NSInteger)numberOfItemsInCycleImageView: (HMCycleImageView *)cycleImageView;

//提供轮播器的图片
- (NSURL *)cycleImageView:(HMCycleImageView *)cycleImageView itemUrlAtIndex: (NSInteger)index;

@end

@protocol HMCycleImageViewDelegate <NSObject>



@end

@interface HMCycleImageView : UIView

//占位图
@property (strong,nonatomic) UIImage *placeholderImage;

//主题色
@property (strong,nonatomic) UIColor *mainColor;

//数据源
@property (strong ,nonatomic ) id<HMCycleImageViewDataSourse> datasource;

//代理
@property (strong ,nonatomic) id<HMCycleImageViewDelegate> delegate;

//刷新数据
- (void)reloadData;

@end
